import request from '@/utils/request';
import qs from 'qs';
// 登录
export function login (data) {
  return request ({
    baseURL: '',
    data: data,
    transformRequest: [
      function (data) {
        data = qs.stringify (data);
        return data;
      },
    ],
    url: '/connect/token',
    method: 'post',
  });
}

// 获取用户信息
export function getInfo () {
  return request ({
    url: '/abp/application-configuration',
    method: 'get',
  });
}

export function logout () {
  return request ({
    url: '/vue-element-admin/user/logout',
    method: 'post',
  });
}
